package moocloudstudio.minder.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel("基础实体类")
@Document
@Data
public class MinderEntity implements Serializable {
    @ApiModelProperty(value = "id")
    private String id;
    @ApiModelProperty(value = "逻辑删除", position = -1)
    private String deleted;
    @ApiModelProperty(value = "创建者", position = -2)
    private String createBy;
    @ApiModelProperty(value = "修改者", position = -3)
    private String updateBy;
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    @ApiModelProperty(value = "创建时间", position = -4)
    private LocalDateTime createdAt;
    @DateTimeFormat(iso = DateTimeFormat.ISO.DATE_TIME)
    @ApiModelProperty(value = "更新时间", position = -5)
    private LocalDateTime updatedAt;
}
